package com.ljc;

//import cn.hutool.core.date.DateTime;
//
//import java.util.Date;
//import java.util.regex.Matcher;
//import java.util.regex.Pattern;

import cn.hutool.json.JSONUtil;
import com.ljc.utils.JsonUtils;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author ${USER}
 * @date ${DATE}
 * @desc
 */
public class Main {
    public static void main(String[] args) {
//        System.out.println("Hello world!");


        //去除 html 标记
//        Pattern pattern = Pattern.compile("<.+?>", Pattern.DOTALL);
//        Matcher matcher = pattern.matcher("<a href=\"index.html\">主页</a>");
//        String string = matcher.replaceAll("");
//        System.out.println(string);

//
//        //装箱
//        Integer integer = 1;
//        //拆箱
//        int i=integer;

//        Integer integer1 = 3;
//        Integer integer2 = 3;
//        if (integer1 == integer2) {
//            System.out.println("integer1 == integer2");
//        }else{
//            System.out.println("integer1 != integer2");
//        }
//        Integer integer3 = 300;
//        Integer integer4 = 300;
//        if (integer3 == integer4) {
//            System.out.println("integer3 == integer4");
//        }else{
//            System.out.println("integer3 != integer4");
//        }

        List<String> itemIds = new ArrayList<>();
        itemIds.add("7268260857992269111");

        Map<String, List<String>> postMap = new HashMap<>();
        postMap.put("item_ids",itemIds);

        //print: {"item_ids":["7268260857992269111"]}
        System.out.println(JsonUtils.beanToJson(postMap));


    }
}

class Model1 {
    private Boolean isSuccess;

    public void setSuccess(Boolean success) {
        isSuccess = success;
    }

    public Boolean getSuccess() {
        return isSuccess;
    }
}

class Model2 {
    private Boolean success;

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }
}

class Model3 {
    private boolean isSuccess;

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }
}

class Model4 {
    private boolean success;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }
}
